"""
集成专家
"""
from langgraph.prebuilt import create_react_agent

from core.llm import llm
from core.agents.plan.prompts import research_prompt


synthesizer = create_react_agent(
    name="Synthesizer",
    role="Integration Specialist",
    description="Integrates information or forms conclusions based on delegated synthesis sub-tasks.",
    prompt=research_prompt,
    model = llm,
    tools = [],
)


if __name__ == '__main__':
    res = synthesizer.invoke({"messages": "what's (3 + 5) x 12?"})
    print(res['messages'][-1].content)